package com.neu.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neu.entity.DeptVo;
import com.neu.entity.UserRoleVo;
import com.neu.service.SchedulingService;
import com.neu.util.JsonResult;
import com.neu.util.ResultCode;

@CrossOrigin
@RestController
@RequestMapping("/his/scheduling")
public class SchedulingController {
	@Autowired
	private SchedulingService schedulingService;
//	获取所有课室列表
	@GetMapping("/get_sc")
		public JsonResult<List<DeptVo>> getDeptList() {
			return new JsonResult<List<DeptVo>>();		
		}
//	获取指定科室可排班的医生列表
	@GetMapping("/get_userRole")
		public JsonResult<List<UserRoleVo>> getUserRole(int deptID) {
			return new JsonResult<List<UserRoleVo>>();
		}
//	获取所有的医生排班的规则
	@GetMapping("/get_AllUserRole")
		public JsonResult<List<UserRoleVo>> getAllUserRole() {
			return new JsonResult<List<UserRoleVo>>();				
	}
//	修改排班规则的方法
	@PostMapping("/updateRole")
		public JsonResult<Boolean> updateRole(@RequestBody UserRoleVo userRoleVo) {
		

				return new JsonResult<Boolean>();
			
	}

		
}
